{template 'common/header'}
<div class="we7-margin-bottom">
	<a href="{php echo url('site/entry/post', array('m' => $_GPC['m']))}" class="btn btn-primary  we7-padding-horizontal pull-right">添加专题页面</a>
</div>
<div class="clearfix we7-padding-top">
	<div class="panel panel-default">
		<div class="panel-heading">
			微页面
		</div>
		<div class="table-responsive panel-body">
			<table class="table table-hover">
				<thead class="navbar-inner">
				<tr>
					<th>名称</th>
					<th style="width:200px;">关键字</th>
					<th style="width:210px;">创建时间</th>
					<th style="width:250px;">操作</th>
				</tr>
				</thead>
				<tbody>
					{loop $list $page}
					<tr>
						<td>{$page['title']}</td>
						<td>{$page['params'][0]['property'][0]['params']['keyword']}</td>
						<td>{php echo date('Y-m-d H:i', $page['createtime'])}</td>
						<td style="position:relative;">
							<a href="{php echo url('site/entry/post', array('m' => 'we7_diyspecial', 'id' => $page['id']))}">编辑</a>
							&nbsp;-&nbsp;
							<span><a class="js-clip" href="javascript:;" data-url="{php echo murl('home/page', array('id' => $page['id']), true ,true)}">复制链接</a></span>
							&nbsp;-&nbsp;
							<a href="{php echo url('site/entry/del', array('m' => 'we7_diyspecial', 'id' => $page['id']))}" onclick="if(!confirm('确定删除该微页面吗？')) return false;">删除</a>
						</td>
					</tr>
					{/loop}
				</tbody>
			</table>
		</div>
	</div>
	{$pager}
</div>
<script>
	$('.js-clip').each(function(){
		util.clip(this, $(this).data('url'));
	});
</script>
{template 'common/footer'}